﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" 
    CodeFile="WIN32_4A.aspx.cs" Inherits="IFRS_WIN32_4A" %>

<%@ Register Assembly="vsm.WebControls" Namespace="vsm.WebControls" TagPrefix="vsm" %>
<%@ Register Assembly="vsm.CustomControl" Namespace="vsm.CustomControl" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">         
                
        window.SetValueVmLoadObjective = function (Value1, Value2) {
             document.getElementById("<%= hidLoanObjective.ClientID %>").value = Value1;
             document.getElementById("<%= txtLoanObjective.ClientID %>").value = Value2;
         }

        window.SetValueArrangementPurpose = function (Value1, Value2) {
            document.getElementById("<%= hidArrangementPurpose.ClientID %>").value = Value1;
            document.getElementById("<%= txtArrangementPurpose.ClientID %>").value = Value2;
        }

    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <div class="table_detail">
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblTransactionDate" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:TextBox ID="txtTransactionDate" CssClass="datepicker" SkinID="dateText" 
                                runat="server" onblur="datebox_onblur( this, event );" ></asp:TextBox>
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqTransactionDate" runat="server" ErrorMessage=""
                            ControlToValidate="txtTransactionDate" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblSourceData" runat="server" Text="<%$Resources:ifrsField,SourceData%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlSourceData" runat="server" SkinID="DropDownListWithNoColor" />
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqSourceData" runat="server" ErrorMessage=""
                            ControlToValidate="ddlSourceData" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>                    
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblAccountNo" runat="server" Text="<%$Resources:ifrsField,ACCOUNTNO%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:TextBox ID="txtAccountNo" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqAccountNo" runat="server" ErrorMessage=""
                            ControlToValidate="txtAccountNo" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblRefinanceDate" runat="server" Text="<%$Resources:ifrsField,RefinanceDate%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                       
                        <asp:TextBox ID="txtRefinanceDate" CssClass="datepicker" SkinID="dateText" 
                                runat="server" onblur="datebox_onblur( this, event );" ></asp:TextBox>
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblMisPaymentDate" runat="server" Text="<%$Resources:ifrsField,MisPaymentDate%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                       
                        <asp:TextBox ID="txtMisPaymentDate" CssClass="datepicker" SkinID="dateText" 
                                runat="server" onblur="datebox_onblur( this, event );" ></asp:TextBox>
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblLoanObjective" runat="server" Text="<%$Resources:ifrsField,HPAndTFAddOn_LoanObjectiveID%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <cc1:TextboxAutoComplete ID="txtLoanObjective" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                        <asp:Button ID="btnLoanObjective" runat="server" Text="..." />                        
                    </div>                    
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblArrangementPurpose" runat="server" Text="<%$Resources:ifrsField,ArrangementPurposeID%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <cc1:TextboxAutoComplete ID="txtArrangementPurpose" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                        <asp:Button ID="btnArrangementPurpose" runat="server" Text="..." />                        
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblCreditLevel" runat="server" Text="<%$Resources:ifrsField,CREDIT_LEVEL%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlCreditLevel" runat="server" SkinID="DropDownListWithNoColor" />                        
                    </div>
                </div>                
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblDoubtfulStatus" runat="server" Text="<%$Resources:ifrsField,DoubtfulStatusID%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlDoubtfulStatus" runat="server" SkinID="DropDownListWithNoColor" />
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblOperationStatus" runat="server" Text="<%$Resources:ifrsField,OperationStatusID%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlOperationStatus" runat="server" SkinID="DropDownListWithNoColor" />
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblTDRType" runat="server" Text="<%$Resources:ifrsField,TDRTypeID%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlTDRType" runat="server" SkinID="DropDownListWithNoColor" />                        
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblChangeCondition" runat="server" Text="<%$Resources:ifrsField,ChangeConditionID%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlChangeCondition" runat="server" SkinID="DropDownListWithNoColor" />                       
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblOldAccountNo" runat="server" Text="<%$Resources:ifrsField,OldAccountNo%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:TextBox ID="txtOldAccountNo" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                    </div>                    
                    <div class="collabel">
                        <asp:Label ID="lblReservedAmount" runat="server" Text="<%$Resources:ifrsField,ReservedAmount%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                        
                        <cc1:TextboxNumber ID="txtReservedAmount" runat="server" SkinID="TextBoxWithNoColor" 
                            MaxLength="10" DigitDecimal="2" TypeTextbox="Currency" />
                    </div>                    
                </div>               
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblUnpaidInterest" runat="server" Text="<%$Resources:ifrsField,UnpaidInterest%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                        
                        <cc1:TextboxNumber ID="txtUnpaidInterest" runat="server" SkinID="TextBoxWithNoColor" 
                            MaxLength="10" DigitDecimal="2" TypeTextbox="Currency" />&nbsp;
                        <asp:Label ID="lblBAHT" runat="server" Text="<%$Resources:ifrsField,BAHT%>" />
                    </div>                   
                    <div class="collabel">
                    </div>
                    <div class="colinfo">
                    </div>                 
                </div>
            </div>
            <div class="colbtn">
                <asp:Button ID="btnSAVE_NEW" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SAVE_NEW%>" onclick="btnSAVE_NEW_Click" />&nbsp;
                <asp:Button ID="btnSAVE" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SAVE%>" onclick="btnSAVE_Click" />&nbsp;
                <asp:Button ID="btnCLEAR" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CLEAR%>" OnClick="btnCLEAR_Click" />&nbsp;
                <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>" onclick="btnCANCEL_Click" />
            </div>
        </div>
    </div>    
    <asp:HiddenField ID="hidHPAndTFAddOnID" runat="server" />
    <asp:HiddenField ID="hidUpdateDate" runat="server" />
    
    <asp:HiddenField ID="hidLoanObjective" runat="server" />
    <asp:HiddenField ID="hidArrangementPurpose" runat="server" />  

    <script src="../Content/js/Currency.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>

